home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0030.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  421 b   |  19 lines

  1. > Does anyone know if there is a way to force Amos Pro to print to a file
  2. > (using Print #, of course 8^) using a forced floating-point format?
  3.  
  4. You could always do it like this:
  5.  
  6. A#=value
  7. B#=A#*100 (or more, depending on how many decimal places you want)
  8. A$=Str$(B#)
  9. B$=Left$(A$,Len(A$)-2) (for 2 dec places)
  10. B$=B$+"."
  11. C$=Right$(A$,2)
  12. B$=B$+C$
  13. Print #1,B$
  14. and so on
  15.  
  16.  Well met and godspeed,
  17.                       Giark
  18.  
  19.